package luogu;

import java.math.BigInteger;
import java.util.Scanner;

public class Main1601 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();

        BigInteger A = new BigInteger(a);
        BigInteger B = new BigInteger(b);
        BigInteger sum = A.add(B);

        System.out.println(sum);
    }
}
